package se.teamscape.client.presenter;

import net.customware.gwt.presenter.client.EventBus;

import com.google.inject.Inject;

/**
 * Default presenter that is revealed when user visits the site.
 * 
 * @author Andreas Borglin
 * 
 */
public class WelcomePresenter extends BasePresenter<WelcomePresenter.Display> {

    public interface Display extends BasePresenter.Display {

        void addText(String text);

    }

    @Inject
    public WelcomePresenter(Display display, EventBus eventBus) {
        super(display, eventBus);
    }

    @Override
    protected void onLazyBind() {

    }

    @Override
    protected void onRevealDisplay() {

        if (needsUpdate()) {
            display.addText("Welcome to Teamscape.");
            viewUpdated();
        }

    }

}
